<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id = "app">
        <button @click="handleAdd1">add1-函数名-自动传事件对象</button>
        <button @click="handleAdd2($event)">add1-函数名-自动传事件对象</button>

        <ul @click="handleulclick">
            <!-- 注意stop!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
            <li @click.stop="handleliclick">1111111111111111</li> 
        </ul>
    </div>
    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                count:1
            },
            methods:{
                handleAdd2(data){
                    console.log(data)
                },
                handleAdd1(evt){
                    console.log(evt)
                },
                handleulclick(){
                    console.log("handleulclick")
                },
                handleliclick(evt){
                    console.log(evt)
                    // evt.stopPropagation()
                    console.log("handleliclick")
                }
            }
        })
    </script>
</body>
</html>